package com.cy.ppj.dao.mapper.mall;

import com.cy.ppj.model.domian.mall.GoodsCategory;
import com.cy.ppj.model.query.mall.GoodsCategoryAdminListQuery;
import com.cy.ppj.model.vo.mall.GoodsCategoryAdminListVO;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description 商品类别 GoodsCategoryMapper
 * @Author tanyilin
 * @Date 2019/7/2 17:40
 */
@Mapper
public interface GoodsCategoryMapper extends BaseMapper<GoodsCategory> {

    /**
     * 后台-分页查询商品类别列表
     * @param query
     * @return int
     */
    int selectGoodsCategoryAdminListCount(GoodsCategoryAdminListQuery query);

    List<GoodsCategoryAdminListVO> selectGoodsCategoryAdminList(GoodsCategoryAdminListQuery query);

    /**
     * 查询当前库里最大的排序值
     * @param
     * @return int
     */
    int selectMaxWeight();

    /**
     * 查询全部的商品类别列表，不分页
     * @param
     * @return java.util.List<com.cy.ppj.model.domian.mall.GoodsCategory>
     */
    List<GoodsCategory> selectAllGoodsCategoryList();
}
